package com.goodfox.web.generic.authority.service;

import javax.servlet.http.HttpServletRequest;

import com.goodfox.web.generic.account.entity.Account;

/**
 * 权限Service
 * @author qin gt
 *
 */
public interface PowerService {

	/**
	 * 判断使用登录账号是否有访问该url的权限
	 * @param account 当前登录账号
	 * @param useUrl 访问的Url
	 * @return
	 */
	boolean havePower(Account account,String useUrl);
	
	/**
	 * 判断路径是否有权限
	 * @param request
	 * @return
	 */
	Account havePower(HttpServletRequest request);
}
